package com.itlong.cloud.sdk.resource;

import com.itlong.cloud.POJO.DTO.sdk.CloudElevatorSDKServerSetUrlDTO;
import com.itlong.cloud.project.sdk.ICloudElevatorSDKServerProjectServiceClient;
import com.itlong.cloud.sdk.service.ICloudElevatorSDKServerProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;


/**
 * <desc>
 *      云对讲SDK项目服务层暴露接口实现类
 * </desc>
 *
 * @createDate 2018/05/17
 */
@RestController
public class CloudElevatorSDKServerProjectServiceResource implements ICloudElevatorSDKServerProjectServiceClient {

    @Autowired
    private ICloudElevatorSDKServerProjectService iCloudElevatorSDKServerProjectService;

    /**
     * <desc>
     *      设置信息变更路由和状态上报路由
     * </desc>
     *
     * @return
     * @author Juguang.S
     * @createDate 2018/12/27
     */
    @Override
    @PostMapping(path = "/cloudElevatorSDK/server/setUrl")
    public Integer setUrl(@RequestBody CloudElevatorSDKServerSetUrlDTO cloudElevatorSDKServerSetUrlDTO) {
        return iCloudElevatorSDKServerProjectService.setUrl(cloudElevatorSDKServerSetUrlDTO);
    }

}
